#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import numpy as np
a =np.array([1, 10, 4, 2, 9, 2, 34, 5, 9, 8, 5, 0]) 
c = np.copy(a)
b = a.shape
b = b[0]

for j in range(0,11):
    i = 0
    while i <= b-1-j:
        x = a[j]
        k = j
        if a[i+j] > x:
            k = i+j
            x = a[i+j]
        i = i + 1
        a[j],a[k] = a[k],a[j]
print("原始数据 ",c,"\n排列结果 ",a)
'''
import numpy as np


a = np.random.random(10)
b = np.sort(a,axis =0)
b[::-1]
'''
